
public class BlockInfo {

	private int pieceIndex;
	private int blockOffset;
	private int length;

	public BlockInfo (int pieceIndex, int blockOffset, int length) {
		this.pieceIndex = pieceIndex;
		this.blockOffset = blockOffset;
		this.length = length;
	}

	public int index () {
		return pieceIndex;
	}

	public int offset () {
		return blockOffset;
	}

	public int length () {
		return length;
	}
	
	public String toString () {
	    return pieceIndex + ":" + blockOffset/16384 + ':' + length;
	}
}
